<?php

namespace frontendw\models;

/**
 * @author  shuang
 * @date    2017-5-30 10:29:13
 * @version V1.0
 * @desc    
 */
use common\models\SlideInfo;

class WB_SlideInfo extends SlideInfo {
    /*
     * 查询轮播图
     * @params  $limit
     * return array
     */

    public static function searchSlideData($limit) {
        $result = WB_SlideInfo::find()->where("image is not null")->orderBy("updated_at desc")->limit($limit)->asArray()->all();
        return $result;
    }

}
